package demo6;

public class TestSingleton {
    public static void main(String[] args) {
        Singleton singleton =Singleton.getInstance();
        Singleton singleton1 = Singleton.getInstance();
        System.out.println(singleton);
        System.out.println(singleton1);
        System.out.println(singleton.equals(singleton1));

    }
}
